BracketHighlight 配置

参考

Customizing - BracketHighlighter Documentation

//Sublime Text Love - Plugin: BracketHighlighter - 括號高亮

SublimeText插件BracketHighlighter配置 |

我的笔记

高亮方式

支持4种高亮方式:underline/outline/highlight/solid

不用重启就能看到修改效果

括号种类

name meaning
Bracket Tag <tag> </tag>
Bracket Curly { }
Bracket Round ( )
Bracket Square [ ]
Bracket Quote ' '" "
Bracket Unmatched 没有成对匹配到的符号(所有种类)

我的配置

以下是我自己 Mac 上的配置,路径什么的根据自己灵活变通更改就好

主要有两个地方要改:

My personal configuration: bh_core.sublime-settings

复制默认的值进入

/Users/me/Library/Application\ Support/Sublime\ Text\ 3/Packages/User

然后根据喜好更改高亮方式

My personal configuration: [Default Theme].tmTheme

这个配置主要是更改 foreground color(前景色),也就是高亮颜色

方法:

  • TmTheme Editor 里搞个 tmTheme 文件下来, 放入 /Users/me/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
  • 打开主题文件,添加如下代码 在下方,与其它标签对齐
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<dict>
<key>name</key>
<string>Bracket Tag</string>
<key>scope</key>
<string>brackethighlighter.tag</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#66CCCC</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Curly</string>
<key>scope</key>
<string>brackethighlighter.curly</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CC99CC</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Round</string>
<key>scope</key>
<string>brackethighlighter.round</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFCC66</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Square</string>
<key>scope</key>
<string>brackethighlighter.square</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#6699CC</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Angle</string>
<key>scope</key>
<string>brackethighlighter.angle</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#F99157</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Quote</string>
<key>scope</key>
<string>brackethighlighter.quote</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#99CC99</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Bracket Unmatched</string>
<key>scope</key>
<string>brackethighlighter.unmatched</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#F2777A</string>
</dict>
</dict>